package com.javaee.lpr.cotroller;

import com.javaee.lpr.entity.Notice;
import com.javaee.lpr.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class NoticeController {
    @Autowired
    private NoticeService noticeService;

    @RequestMapping
    public List<Notice> queryNotice(){
        List<Notice> notices = noticeService.queryNotice();
        return notices;
    }


}
